package com.leo.foodmaster.admin.stock.entity;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.leo.foodmaster.admin.system.entity.SysUser;
import com.leo.foodmaster.commons.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 仓库管理
 * </p>
 *
 * @author Leo
 * @since 2021-08-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Warehouse对象", description="仓库管理")
public class Warehouse extends BaseEntity implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "仓库编号")
    private String serialNum;

    @ApiModelProperty(value = "仓库关联食材类型Id（多个用逗号分隔）")
    private String foodMaterialTypeId;

    @ApiModelProperty(value = "仓库状态：0（可用）1（停用）")
    private String status;

    @ApiModelProperty(value = "上级仓库Id")
    private Long parentId;

    @ApiModelProperty(value = "所属机构Id")
    private Long organId;

    @ApiModelProperty(value = "仓库管理员Id")
    private Long adminId;

    @ApiModelProperty(value = "仓库管理员名称")
    private String adminName;

    @ApiModelProperty(value = "仓库管理员电话")
    private String adminPhone;

    @ApiModelProperty(value = "仓库容量（单位kg）")
    private BigDecimal capacity;

    @ApiModelProperty(value = "仓库库存（单位kg）")
    private BigDecimal stock;

    @ApiModelProperty(value = "总金额")
    private BigDecimal total;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "省编码")
    private String provinceCode;

    @ApiModelProperty(value = "省名称")
    private String provinceName;

    @ApiModelProperty(value = "市编码")
    private String cityCode;

    @ApiModelProperty(value = "市名称")
    private String cityName;

    @ApiModelProperty(value = "区县编码")
    private String areaCode;

    @ApiModelProperty(value = "区县名称")
    private String areaName;

    @ApiModelProperty(value = "仓库地址")
    private String address;

    @ApiModelProperty(value = "逻辑删除标志：默认为0（正常）1（删除）")
    private Boolean delFlag;

    @TableField(exist = false)
    private List<SysUser> adminList;
    @TableField(exist = false)
    private List<Long> foodMaterialType;
    @TableField(exist = false)
    private List<Long> adminIdList;


}
